<template>
  <div class="EmergencyDetail">
    <div class="flex location-wrap">
      <span class="white">当前位置：</span>
      <el-breadcrumb separator="/">
        <el-breadcrumb-item :to="{ path: '/EWManagement' }">预警管理 </el-breadcrumb-item>
        <el-breadcrumb-item :to="{ path: '/NoticeList' }">预警通知单</el-breadcrumb-item>
        <el-breadcrumb-item>预警通知单反馈详情</el-breadcrumb-item>
      </el-breadcrumb>
    </div>
    <div class="EmergencyDetail-center">
      <div class="EmergencyDetail-add">
        <div class="EmergencyDetail-titel">
          <div class="EmergencyDetail-top">预警通知单反馈详情</div>
          <div class="flexBetween">
            <div slot="title" class="flex">
            </div>
            <el-row>
              <el-button size="mini" @click="AddFh">返回</el-button>
            </el-row>
          </div>
        </div>
        <div class="EmergencyDetail-zt">
          <el-collapse v-model="activeNames">
            <el-collapse-item name="1">
              <div slot="title" class="title_box">
                <div class="flex">
                  <div class="leftLine"></div>
                  <div class="fontSize16">基本信息</div>
                </div>
                <div style="display:flex;align-items: center;">
                  <i :class="judgeActive('1') !== -1 ? 'downArrow1' : 'downArrow2'" />
                </div>
              </div>
              <div class="information_Sources_content">
                <div class="task_distribution marginB15">
                  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;预警通知单：{{
                    DetailList.qkms }}</div>
                </div>
              </div>
              <div class="information_Sources_content">
                <div class="task_distribution marginB15">
                  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;预警研判单：{{ DetailList.qkms }}
                  </div>
                </div>
              </div>
              <div class="information_Sources_content">
                <div class="task_distribution information">
                  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;险情类别：{{
                    DetailList.qkms }}</div>
                  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;预警级别：{{ DetailList.qkms }}</div>
                  <div></div>
                  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;影响范围：{{
                    DetailList.qkms }}</div>
                  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;影响时间：{{ DetailList.qkms }}至{{
                    DetailList.qkms }}
                  </div>
                </div>
              </div>
              <div class="information_Sources_content">
                <div class=" marginB15 nametites ">
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div class="nametite">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;事件概要：</div>
                  <div class="nametit">{{ DetailList.qkms }}</div>
                </div>
              </div>
            </el-collapse-item>
            <el-collapse-item name="2">
              <div slot="title" class="title_box">
                <div class="flex">
                  <div class="leftLine"></div>
                  <div class="fontSize16">反馈信息</div>
                </div>
                <div style="display:flex;align-items: center;">
                  <i :class="judgeActive('2') !== -1 ? 'downArrow1' : 'downArrow2'" />
                </div>
              </div>
              <div class="information_Sources_content">
                <div class="task_distribution information">
                  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;执行单位：{{
                    DetailList.zxdwName }}
                  </div>
                  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;部门/班组：{{ DetailList.bmbzName }}</div>
                  <div></div>
                  <div>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;专业：{{
                      DetailList.zyName }}</div>
                  <div>&nbsp;&nbsp;&nbsp;任务负责人：{{ DetailList.rwfzr }}</div>
                  <div></div>
                  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;任务开始时间：{{ DetailList.rwdd }}</div>
                  <div>任务结束时间：{{ DetailList.rwdd }}</div>
                </div>
              </div>
              <div class="information_Sources_content">
                <div class=" marginB15 nametites ">
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div class="nametite">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;任务地点：</div>
                  <div class="nametit">{{ DetailList.rwdd }}</div>
                </div>
              </div>
              <div class="information_Sources_content">
                <div class=" marginB15 nametites ">
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div class="nametite">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;成员：
                  </div>
                  <div class="nametit">{{ DetailList.qkms }}</div>
                </div>
              </div>
              <div class="information_Sources_content">
                <div class=" marginB15 nametites ">
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div class="nametite">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;情况描述：</div>
                  <div class="nametit">{{ DetailList.qkms }}</div>
                </div>
              </div>
            </el-collapse-item>
            <el-collapse-item name="3">
              <div slot="title" class="title_box">
                <div class="flex">
                  <div class="leftLine"></div>
                  <div class="fontSize16">附件信息</div>
                </div>
                <div style="display:flex;align-items: center;">
                  <i :class="judgeActive('3') !== -1 ? 'downArrow1' : 'downArrow2'" />
                </div>
              </div>
            </el-collapse-item>
          </el-collapse>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { doGetById } from "@/api/EarlyWarningManagement/yjtzd";
export default {
  name: "NotificationFeedbackDetail",
  components: {},
  data() {
    return {
      activeNames: ["1", "2", "3"],
      activities: [
      ],
      DetailList: {}
    };
  },
  mounted() {
    this.detailList();
  },
  methods: {
    judgeActive(data) {
      return this.activeNames.indexOf(data);
    },
    detailList() {
      doGetById({ id: this.$route.query.id }).then(res => {
        this.DetailList = res;
      });

    },
    // 返回上一级
    AddFh() {
      this.$router.go(-1);
    }
  }
};
</script>

<style scoped lang="less">
.styleyj {
  margin-top: 18px;
}

.EmergencyDetail {
  width: 100%;
  height: 100%;

  :deep(.el-input__inner) {
    background-color: #fff;
    border: none;
    color: #303133;
  }

  :deep(.el-collapse-item__arrow) {
    display: none;
  }

  .nametite {
    width: 135px;
  }

  .nametitess {
    width: 120px;
  }

  .nametit {
    flex: 1;
  }

  .nametites {
    display: flex;
    // align-items: center;
    // padding: 0 30px;
    // font-size: 16px;
  }

  .title_box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .downArrow1 {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url("../../../assets/img/downArrow1.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  .downArrow2 {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: url("../../../assets/img/downArrow1.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: rotate(-180deg);
  }

  //鼠标悬浮样式
  :deep(tr.hover-row) {

    &,
    &.el-table__row--striped {

      &,
      &.current-row {
        >td.el-table__cell {
          background-color: transparent;
        }
      }
    }
  }

  :deep(.el-timeline) {
    width: 85%;
    margin-left: 35px;
    margin-top: 30px;
  }

  :deep(.el-breadcrumb__inner.is-link) {
    font-weight: 100;
    color: #fff;
  }

  :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner) {
    color: #3270ff;
  }

  :deep(.el-breadcrumb) {
    font-size: 16px;
    line-height: initial;
  }

  :deep(.el-input__inner) {
    font-size: 16px;
  }

  .EmergencyDetail-center {
    width: 100%;
    height: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;

    .EmergencyDetail-add {
      width: 100%;
      height: 100%;
      background-color: #fff;
      border-radius: 5px;
      overflow: auto;

      .EmergencyDetail-titel {
        margin: 0 20px;
        position: relative;
        padding: 10px 0 5px 0;

        // border-bottom: solid 1px #ccc;
        .EmergencyDetail-top {
          text-align: center;
          font-family: 微软雅黑;
          font-weight: 400;
          font-style: normal;
          font-size: 28px !important;
        }
      }

      .EmergencyDetail-zt {
        overflow-y: auto;
        margin: 0 20px;

        :deep(.el-button--text) {
          color: #606266;
          padding: 2px;
        }

        .EmergencyList-dialog-form-item {
          display: flex;
          justify-content: space-between;
          flex-wrap: wrap;
        }

        .task_distribution {
          display: flex;
          // align-items: center;
          padding: 0 30px;
          font-size: 16px;

          span {
            color: #3561fd;
            text-decoration: underline;
          }
        }

        .task_distributions {
          display: flex;
          align-items: center;
          padding: 0 30px;
          font-size: 16px;

          span {
            color: #3561fd;
            text-decoration: underline;
          }
        }

        .task_distribution.information {
          flex-wrap: wrap;

          div {
            width: 33%;
            margin-bottom: 12px;
            align-items: center;

            img {
              position: relative;
              top: 5px;
              left: 10px;
            }
          }
        }

        .task_distributions.informations {
          flex-wrap: wrap;

          div {
            width: 50%;
            margin-bottom: 12px;
            align-items: center;

            img {
              position: relative;
              top: 5px;
              left: 10px;
            }
          }
        }
      }
    }
  }
}

:deep(.el-step__icon.is-text) {
  border: none;
}

:deep(.el-collapse-item__content) {
  padding-top: 5px;
  padding-bottom: 10px;
  font-size: 16px;
}

.yuandian1 {
  display: inline-block;
  background-color: #ccc;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.ydBgcolor {
  background-color: #246dfd;
  box-shadow: 0px 0px 8px 0px rgb(10, 99, 241);
}

.EmergencyList-table-pag {
  float: right;
  margin-top: 10px;

  >div {
    line-height: 32px;
  }
}

:deep(.el-table) {
  font-size: 16px;

  tr {
    > :last-child {
      padding: 0;

      img {
        display: block;
        margin: auto;
      }
    }
  }

  .white-row {
    background: #f0f2f5;
  }
}

:deep(.el-collapse-item__header) {
  border-bottom: 1px solid #ccc;
}

:deep(.el-collapse-item__content) {
  padding: 15px 0;
}

:deep(.el-collapse-item__wrap) {
  border: none;
}

.grid-content {
  background-color: #b1c8f9;
  border: 1px solid #d7d7d7;
  text-align: center;
  padding: 8px 0;
}

.grid-content.bottom_col {
  background-color: #f0f2f5;
  border: 1px solid #d7d7d7;
}

.grid-content.top_col {
  background-color: #fff;
  border-top: none;
  border-bottom: none;
}

.width176 {
  width: 159px;
}

.width150 {
  width: 117px;
}

.width133 {
  width: 133px;
}
</style>
